﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Tasdeed : System.Web.UI.Page
{
    Connectdbnour con = new Connectdbnour();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        String[] array = null;
        try
        {
            array = new String[8];
            array = con.ShowBill(DropDownList1.SelectedItem.ToString());
            Label1.Text = array[2];
            Label2.Text = array[3];
            Label3.Text = array[4];
            Label4.Text = array[5];
            Label5.Text = array[6];
            Label6.Text = array[7];
        }
        catch (Exception ex)
        {
            
        }
        
    }
    protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
    {
        Label7.Text = con.countsupindebt(DropDownList2.SelectedItem.ToString()).ToString();
    }
}